package com.xm.pojo;

import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class User {
    private Integer id;
    //@ColumnWidth(20)
    private String username;
    //@ColumnWidth(20)
    private String password;
    private String nick;
    @ColumnWidth(65)
    private String urls;
    @ColumnWidth(20)
    @DateTimeFormat(pattern = "yyyy-MM-dd")//设置日期类型的格式模板
    private Date time;
    @ColumnWidth(20)
    private String address;
    @ColumnWidth(20)
    private String phone;
    private String state;
}
